package week10;

import java.util.Scanner;

import javax.annotation.Resource;

public class MainHan62 {
	Scanner sc = new Scanner(System.in);
    Resource resource = null;
    try{
        resource = new Resource();
        resource.open(sc.nextLine());
        System.out.println("resource open success");
    }catch(Exception e) {
         System.out.println(e);
    }finally {
       try {
          resource.close();
          System.out.println("resource release success");
       }catch(RuntimeException e) {
          System.out.println(e);
       }   
    }

       sc.close();
       }
}